package com.hontech.bv.model.pipe_line

import com.hontech.bv.utils.isBitSet

class SwitchValue (value: Int) {

    val isMaxDoorClose = value.isBitSet(0)
    val isMinDoorClose = value.isBitSet(1)
    val isLockClose = value.isBitSet(2)
    val isDrop1 = value.isBitSet(3)
    val isDrop2 = value.isBitSet(4)
    val isStepMotorOrigin = value.isBitSet(5)
    val isStationIce = value.isBitSet(6)
    val isStationPowder = value.isBitSet(7)
    val isStationPearl = value.isBitSet(8)
    val isStationArm = value.isBitSet(9)
    val isStationDrop1 = value.isBitSet(10)
    val isStationDrop2 = value.isBitSet(11)
    val isStepMotorAlm = value.isBitSet(12)
}